package com.techblor.redis.library.message.listener;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.redis.listener.Topic;

import java.lang.reflect.Method;
import java.util.List;

/**
 * redis订阅监听器信息
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class RedisMessageListenerInfo {

    /**
     * 对象实例
     */
    private Object object;

    /**
     * 监听频道主题
     */
    private List<Topic> topics;

    /**
     * 代理方法
     */
    private Method method;

}
